package com.corpgovernment.organization.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * 同步组织请求实体
 */
@Data
public class SyncOrganizationCallBackRequestEntity implements Serializable {

    public static final String SYNC_ORGANIZATION_OPERATION_TYPE_ADD = "A";
    public static final String SYNC_ORGANIZATION_OPERATION_TYPE_UPDATE = "U";
    public static final String SYNC_ORGANIZATION_OPERATION_TYPE_DELETE = "D";

    /**
     * 组织ID，对应客户公司组织主键
     */
    private String orgId;
    /**
     * 被同步系统（即商旅系统）中组织主键
     */
    private String orgIdOfPlatform;
    /**
     * 操作类型（A新增 U修改 D删除）
     */
    private String type;
    /**
     * 是否操作成功
     */
    private Boolean result;
    /**
     * 失败原因
     */
    private String failReason;


    public SyncOrganizationCallBackRequestEntity() {
    }
}
